// 处理路由重复导航问题
let originalPush = VueRouter.prototype.push;
VueRouter.prototype.push = function push(location) {
    return originalPush.call(this, location).catch(err => err);
};
//=include .cache/routes.bundle.js
__router = new VueRouter({
    mode: 'hash',
    base: '/',
    linkActiveClass: 'router-link-active',
    linkExactActiveClass: 'router-link-exact-active',
    routes: __routes,
    scrollBehavior(to, from, savedPosition) {
        if (to.hash) {
            return {
                selector: to.hash
            };
        }
    }
});
// __router.beforeEach((to, from, next) => {
//     // 全局导航守卫
//     if (to.path === '/login') {
//         next();
//         return;
//     }
//     if (__storage.get('token')) {
//         next();
//     } else {
//         next('/login');
//     }
// });
